package sixyz.entity.value;

public class Message {

    private Integer statusCode; // 状态码 (1成功，0失败）
    private String description; // 提示消息
    private Object object;      // 回显对象

    public Message(Integer statusCode, String description, Object object) {
        this.statusCode = 1;
        this.description = description;
        this.object = object;
    }

    public Message() {
    }

    public Integer getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(Integer statusCode) {
        this.statusCode = statusCode;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Object getObject() {
        return object;
    }

    public void setObject(Object object) {
        this.object = object;
    }

    @Override
    public String toString() {
        return "Message{" +
                "statusCode=" + statusCode +
                ", description='" + description + '\'' +
                ", object=" + object +
                '}';
    }
}